const network = "(我)-[你]-(我)-[你]-(我)"
// const reg = /^\((.*?)\)$/g
const reg2 = /[\(\[](.*?)[\)\]]/g;
console.log(network.match(reg2));
const matches = [...network.matchAll(reg2)].map(match => match[1]);
console.log(matches);